<style>
    .profile-avatar-container {
        position: relative;
        width: 100px;
        margin: 0 auto;
    }

    .profile-avatar-container .profile-user-img {
        width: 100px;
        height: 100px;
    }

    .profile-avatar-container .profile-avatar-text {
        display: none;
    }

    .profile-avatar-container:hover .profile-avatar-text {
        display: block;
        position: absolute;
        height: 100px;
        width: 100px;
        background: #444;
        opacity: .6;
        color: #fff;
        top: 0;
        left: 0;
        line-height: 100px;
        text-align: center;
    }

    .profile-avatar-container button {
        position: absolute;
        top: 0;
        left: 0;
        width: 100px;
        height: 100px;
        opacity: 0;
    }
</style>
<div class="row animated fadeInRight">
    <div class="col-md-6">
        <div class="box box-success">
            <!--<div class="panel-heading">
                {:__('Profile')}
            </div>-->
            <div class="panel-body">

                <form id="safe-form" role="form" data-toggle="validator" method="POST" action="{:url('general.profile/update')}">
                    {:token()}
<!--                    <input type="hidden" id="c-avatar" name="row[avatar]" value="{$admin.avatar|htmlentities}"/>-->
                    <div class="box-body box-profile">

                        <!--<div class="profile-avatar-container">
                            <img class="profile-user-img img-responsive img-circle" src="{$admin.avatar|cdnurl|htmlentities}" alt="">
                            <div class="profile-avatar-text img-circle">{:__('Click to edit')}</div>
                            <button type="button" id="faupload-avatar" class="faupload" data-input-id="c-avatar"><i class="fa fa-upload"></i> {:__('Upload')}</button>
                        </div>
-->
<!--                        <h3 class="profile-username text-center">{$admin.username|htmlentities}</h3>-->

                        <div class="form-group">
                            <label for="username" class="control-label">登录账号:</label>
                            <input type="text" class="form-control" id="username" name="row[username]" disabled value="{$admin.username|htmlentities}"/>
                        </div>

                        <div class="form-group">
                            <label for="password" class="control-label">登录{:__('Password')}:</label>
                            <input type="password" class="form-control" id="password" placeholder="{:__('Leave password blank if dont want to change')}" autocomplete="new-password" name="row[password]" value="" data-rule="password"/>
                        </div>
                        <div class="form-group">
                            <label for="safe_code" class="control-label">安全码:</label>
                            <input type="text" class="form-control" id="safe_code" name="row[safe_code]" value="{$admin.safe_code|htmlentities}" data-rule="required"/>
                        </div>
                        <div class="form-group">
                            <button type="submit" class="btn btn-success">{:__('Submit')}</button>
<!--                            <button type="reset" class="btn btn-default">{:__('Reset')}</button>-->
                        </div>

                    </div>
                </form>
            </div>
        </div>

    </div>
</div>
